<div class="formVenue">
    <div class="venue">
        <div id="venue_0">
            <div class="row">
                <div class="rowLabel">Select Venue</div>
                <div class="rowControl">
                    <?php echo CHtml::dropDownList('ClassVenue[venueId][]', '', getVenueByBackendUser($model), array("empty" => "Select venue ", 'class' => 'selectbox  selectVenue', 'onchange' => 'getVanueDeatils(this.id);', 'id' => 'ClassVenue_venueId_0')); ?>
                    <p id="Error_MSG_ClassVenue_venueId_0" class="customeClassvalidate" style="display:none">You have already select this venue.so please select another venue!</p>
                </div>
            </div>
            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'name'); ?>
                </div>
                <div class="rowControl"><?php echo $form->textField($model, 'name[]', array('maxlength' => 45, 'class' => 'input-xlarge requiredfield', 'id' => 'ClassVenue_name_0', 'onblur' => 'getChnageinField(this.id)')); ?>
                </div><!-- row -->
            </div>

            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'address_line1'); ?>
                </div>
                <div class="rowControl"><?php echo $form->textField($model, 'address_line1[]', array('maxlength' => 45, 'class' => 'input-xlarge requiredfield', 'id' => 'ClassVenue_address_line1_0')); ?>
                </div><!-- row -->
            </div>

            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'address_line2'); ?>
                </div>
                <div class="rowControl"><?php echo $form->textField($model, 'address_line2[]', array('maxlength' =>145, 'class' => 'input-xlarge', 'id' => 'ClassVenue_address_line2_0')); ?>                  
                </div><!-- row -->
            </div>

            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'venue_locality'); ?> </div>
                <div class="rowControl"><?php echo $form->textField($model, 'venue_locality[]', array('maxlength' => 145, 'class' => 'input-xlarge', 'id' => 'ClassVenue_venue_locality_0', 'onkeyup' => "getLocality(this.id)")); ?>                  
                <p class="note" style="width: 72%;margin: 0 auto;"> Note:<?php echo Message::LOCALITY_HELP;?></p></div><!-- row -->
            </div>

            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'zip_code'); ?>
                </div>
                <div class="rowControl"><?php echo $form->textField($model, 'zip_code[]', array('maxlength' => 6, 'class' => 'input-xlarge requiredfield', 'id' => 'ClassVenue_zip_code_0')); ?>                  
                </div><!-- row -->
            </div>


            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'country_id'); ?>
                </div>
                <div class="rowControl">
                    <?php echo CHtml::dropDownList('ClassVenue[country_id][]', '99', GxHtml::listData(Country::model()->findAllByAttributes(array('is_active' => SkillConfig::STATUS_ACTIVE)), 'id', 'name'), array('class' => 'selectbox requiredfield', 'id' => 'ClassVenue_country_id_0', 'onchange' => 'getStateDependonCountry(this.id);')); ?>
                </div><!-- row -->
            </div>
            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'state_id'); ?>
                </div>
                <div class="rowControl">
                    <?php echo CHtml::dropDownList('ClassVenue[state_id][]', '1483', GxHtml::listData(State::model()->findAllByAttributes(array('is_active' => SkillConfig::STATUS_ACTIVE)), 'id', 'name'), array('class' => 'selectbox requiredfield', 'id' => 'ClassVenue_state_id_0', 'onchange' => 'getCityDependonCountry(this.id);')); ?>
                    <?php echo $form->error($model, 'state_id'); ?>
                </div><!-- row -->
            </div>
            <div class="row">
                <div class="rowLabel"><?php echo $form->labelEx($model, 'city_id'); ?>
                </div>
                <div class="rowControl">
                    <?php echo CHtml::dropDownList('ClassVenue[city_id][]', '1', GxHtml::listData(City::model()->findAllByAttributes(array('status' => SkillConfig::STATUS_ACTIVE)), 'id', 'city_name'), array('class' => 'selectbox requiredfield', 'id' => 'ClassVenue_city_id_0')); ?>
                </div><!-- row -->
            </div>
            <div class="betch" >
                <div class="addbatch_venue_0_batch">
                    <fieldset>
                        <legend>Batch Detail<a href="javascript:void(0)" id="class_batcheshelp" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_BATCHES; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a></legend>
                        <div class="batchClone"> 
                            <div class="image">
                                <?php $this->renderPartial('/courseBatche/_form', array('form' => $form, 'model' => $modelCourseBatche)); ?>
                            </div>
                        </div>
                        <fieldset>
                            <legend>Batch Sessions</legend>

                            <div class="no-of-session-left-div">
                                <div class="renderbatchFormrowControl">
                                    <div id="addDaySession_venue_0_batche_0">
                                        <div class="rowControl courseSession"><?php echo CHtml::dropDownList('CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][schedule_id][]', '', getAllSchedule('course'), array('empty' => 'Select Day', 'class' => 'courseselectBox requiredfield ClassDaySession_schedule_id_0', 'id' => 'ClassDaySession_schedule_id_0',)); ?></div>

                                        <div class="rowControl bootstrap-timepicker courseSession"><input class="input-small hasTimepicker requiredfield" name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][time_from][]" id="ClassDaySession_start_time_0_venue_0_batch_0" type="text" placeholder="Start Time"  onpaste="return false;"onclick="hastimpiker(this.id)" ><span class="add-on"><i class="icon-time"></i></span></div>
                                        <div class="rowControl bootstrap-timepicker courseSession"><input class="input-small hasTimepicker requiredfield" name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][time_to][]" id="ClassDaySession_end_time_0_venue_0_batch_0" type="text" placeholder="End Time"  onpaste="return false;" onchange="timeCheck(this.id)" onclick="hastimpiker(this.id)" ><span class="add-on"><i class="icon-time"></i></span></div>
                                        <div class="rowControl courseSession"><p class="isFlexble"><input type="checkbox" name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][is_flexible][]" value="1" id="ClassDaySession_is_flexible_0_venue_0_batch_0" onclick="return isFlexibleDaySession(this.id);"/></P><p class="isFlexbleLabel">Flexible</p></div>
                                        <input type="hidden" name="CourseBatcheDaySession[CourseBatche][0][ClassVenue][0][is_flexiblevalue][]" value="0" id="ClassDaySession_is_flexiblevalue_0_venue_0_batch_0"/>


                                        <div class="errorMessage addDayvenueError_0_venue_0_batch_0 dateTimeErrormsg"></div>
                                        <div id="venue_0_batch_0_earlydiscount_0" class="addDayvenue_0_batch_0_earlydiscount_0"></div>
                                        <div style="clear: both;margin-top: 10px;">
                                            <a class="link-buttonadd" id="venue_0_batch_0_earlydiscount_0" onclick="addDaySession(this.id);"><span>Add More</span></a></div>

                                    </div></div></div>
                            <div class="no-of-session-right-div">
                                No. of sessions
                                <input type="text" name="CourseBatche[ClassVenue][0][no_of_session][]" id="no_of_session_venue_0_batch_0" style="width:50px;" onmouseout="return dateSessionValue(this.value, 0, 0);" onkeyup="return dateSessionValue(this.value, 0, 0);" onkeypress="return isNumberKey(event);" placeholder="0" value="0" maxlength="2" />				
                            </div>							
                            <div id="addDateSession_venue_0_batche_0"></div>	
                        </fieldset>
                        <div class="clear" style="clear: both;margin: 21px;"></div>
                        <div id="venue_0_batch_0_earlydiscount_0" class="addEarlyvenue_0_batch_0_earlydiscount_0"></div>
                        <div style="clear: both;height: 10px;margin-top: 10px;"><a class="link-buttonadd" id="venue_0_batch_0_earlydiscount_0" onclick="addEarlyDiscount(this.id);"><span>Add Early Discounts</span></a></div>
                        <hr class="hrclass">
                        <div id="venue_0_batch_0_groupdiscount_0" class="addGroupDiscount_venue_0_batch_0_earlydiscount_0"></div>
                        <div style="clear: both;height: 10px;margin:10px 0px 10px 0px;"><a class="link-buttonadd" id="venue_0_batch_0_earlydiscount_0" onclick="addGroupDiscount(this.id);"><span>Add Group Discounts</span></a></div>
                        <hr class="hrclass">


                        <!--Here starting course srtucture per batch-->

                        <fieldset>	
                            <legend>Class Structures:</legend>
                            <div class="image">
                                <div style="clear:both;"></div>
                                <?php
                                $this->renderPartial('/classStructures/_form', array('model' => $modelCourseStructures, 'modelClassCourse' => $modelCourses, 'type' => 'course',
                                    'form' => $form,
                                    'venueIndex' => 0,
                                    'batcheIndex' => 0,
                                ));
                                ?> 
                            </div>
                        </fieldset>



                    </fieldset>
                </div>
                <div style="clear: both;height: 10px;margin-top: 10px;"></div>
                <a class="link-buttonadd" id="venue_0_batch_0" onclick="addBatch(this.id);"><span>Add Batch</span></a>

            </div>
        </div>
        <input type="hidden" name="venueIndex[]" id="venueIndex_venue_0_batch_0_earlydiscount_0" value="0" class="venueIndex"/> <?php /* This line use for function classVenueIndex means how many genarate venue venue remove the field venue then use this   */ ?> 
        <hr class="hrclass">
    </div>
    <div style="clear: both;height: 10px;margin-top: 10px;"></div>
    <div id="venue_add"><a class="link-buttonadd" id="add_venue_0" onclick="addVenue(this.id);"><span>Add venue</span></a></div>
    <input type="hidden" name="classVenuecountryId" id="classVenuecountryId"><?php /* This line use for function getAllCountry() select all country when genrate javascript form */ ?>  
    <input type="hidden" name="classVenuestateId" id="classVenuestateId"> <?php /* This line use for function getAllSatte() select all state when genrate javascript form */ ?>  
    <input type="hidden" name="classVenuecityId" id="classVenuecityId"><?php /* This line use for function getAllCity select all city when genrate javascript form */ ?>  
    <input type="hidden" name="selectVenuename" id="selectVenuename"> <?php /* This line use for function getVenueName  select all Venue name when genrate javascript form */ ?>   
    <input type="hidden" name="classVenueKey" id="classVenueKey_venue_0_batch" value="0"><?php /* This line use for function clasvenuekey means how many genarate venue  */ ?>                  




    <hr class="hr" style="clear:both;background-color: #1d2e7b;height: 2px;">
    <div class="row" style="clear:both;">
        <div class="rowLabel">Other Information</div>
        <div class="rowControl"><?php echo $form->textArea($modelCourses, 'course_other_information'); ?>
            <?php echo $form->error($modelCourses, 'course_other_information'); ?>
        </div><!-- row -->
    </div>

    <hr class="hr" style="clear:both;background-color: #1d2e7b;height: 2px;">
    <div class="image">
        <?php $this->renderPartial('/ticketBooked/_form', array('form' => $form, 'model' => $modelTicketBooked, 'type' => 'course')); ?>
    </div>





</div>
<!-- form -->



